Part Number Hot Search : 
IR51H224 A143E 12A01 AD9752AR A8140130 DBL154G MBT3904 MBT3904
Product Description
Full Text Search
 

To Download AN2100 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  december 2007 rev 2 1/23 AN2100 application note str71x microcontroller power management introduction this application note is intended for system designers who require a hardware implementation overview of the low power modes of the str71x product family. it shows how to use the str71x product family and describes the minimum hardware resources required to develop an str71x application and to take power consumption measurements example firmware is provided with this application note for implementing and testing the various low power modes. www.st.com
contents AN2100 2/23 contents 1 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1 power supply pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 internal regulators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2.1 main voltage regulator (mvr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2.2 low power voltage regulator (lpvr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 peripheral clock gating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 pll free running mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 flash low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 power-down mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 flash low-power (low-speed) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4 str71x low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.1 low power mode characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.2 guidelines for entering/exiting low power modes . . . . . . . . . . . . . . . . . . . 12 4.2.1 slow mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2.2 wait for interrupt mode (wfi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2.3 low power wait for interrupt mode (lpwfi) . . . . . . . . . . . . . . . . . . . 13 4.2.4 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.2.5 standby mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5 example application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.1 example hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2 firmware example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.2.1 low power mode examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
AN2100 power supply 3/23 1 power supply 1.1 power supply pins figure 1 shows the recommended configuration for the power supply pins: v 33 is the 3.3 v main power supply pin. (v 33 and v 33io-pll are internally linked). v 18 must be connected to a capacitor of at least 10f (tantalum) + 33nf (ceramic) in order to guarantee the stability of the 1.8 v supply to the core. v 18bkp can be used to provide an external 1.8 v supply to the backup block (rtc and wake-up logic) when bypassing the internal voltage regulator during standby mode. caution: in standby mode, when using an external 1.8 v on v 18bkp , the v 33 pin must remain connected to the 3.3v supply. figure 1. str71x power supply pins 1. when not using an external 1.8 v on the v18bkp pin, a 1 f capacitor must be connected between this pin and vss bkp to guarantee on-chip voltage stability. 2. connecting an external 1.8 v supply to the v18 pins is not supported. str71x v 33 v 18 v 18bkp v ss v ssbkp v ss18 10f 33nf v ssbkp 1f vss 1.8 v v 33io-pll v ssio-pll 3.3 v (note 1) optional v ss18 (note 2)
power supply AN2100 4/23 1.2 internal regulators figure 2 provides a schematic view of the power management block of the str71x. figure 2. power management block 1. in normal operation, the switch connecting the v18 domain and the v18bkp domain is closed, it is opened only during standby mode (refer to section 4 ) 1.2.1 main voltage regulator (mvr) the main voltage regulator (mvr) is able to generate sufficient current for the device to operate in any mode through ballast p-channel transistors located inside the i/o ring. it includes a bandgap reference for thermal compensation and it has a static power consumption of 100 a (typical). note: 1 the mvr is automatically switched off in standby mode. 2 the mvr can be configured (using the lpvrwfi bit in the pcu_pwrcr register) to automatically switch off when the device enters stop mode or lpwfi mode, leaving the low power vr as the only power supply. 3 the mvr can be switched off using the vrbyp bit in the pcu_pwrcr register, in this configuration the device is only powered by the low power vr, the maximum allowed operation frequency is 1 mhz and the pll is disabled. 4 when the vrok bit in the pcu_pwrcr register is set by hardware this indicates that the main regulator output voltage is stabilized at the s pecification value. a/d converter low power voltage regulator v dda v 18 v 18bkp v ssa v 33 main voltage regulator standbymode i/os i/os core v 18 3.3 v rtc and standby logic backup block v 18bkp v 33 32 khz oscillator see note 1
AN2100 power supply 5/23 1.2.2 low power voltage regulator (lpvr) the low power voltage regulator (lpvr) is us ed when the mcu is in low-power mode and the main voltage regulator has been switched off. it has a different design from the main voltage regulator and generate s a non-stabilized and non-thermally-compen sated voltage of approximately 1.6v, its output current is not generally sufficient for the device to run in normal operation. because of this limitation, the pll is automatically disabled when the main vr is switched off and the maximum allowed operating frequency is 1 mhz. note: in standby mode the lpvr can be switched off while an external supply provides 1.8 v to the chip through the v18bkp pin for use by rtc and wake-up block.
clock management AN2100 6/23 2 clock management the following figure gives the str71x clock distribution scheme: figure 3. clock distribution scheme the source clock clk is derived from an extern al oscillator, through th e ck pin. this clock may be turned off during low power modes. (refer to section 4 ). the system pll (pll1) is used to multiply the input internally, to generate the appropriate operating frequency. rclk is the output of the system pll or if enabled the ck_af alternate source (32 khz rtc clock). several clock domains exist in the device: main clock mclk, including cpu, internal memories, external memory interface, prccu registers (except rccu registers) pclk1, including apb1 peripherals (serial communication peripherals) pclk2, including apb2 peripherals (system peripherals) each domain may use different frequencies independently by programming the various clock dividers. having a divider dedicated to the cpu subsystem allows software to dynamically change cpu operating frequency, tailoring computing speed and power consumption to application needs, while maintaining a stable operation of all the peripherals. on-chip peripherals, mapped in the apb memory space, make use of the rclk output divided, independently from mclk, by 2, 4 or 8. wait states are automatically added by the bus bridge when accessing their registers. note that clock may be enabled/disabled independently to each peripheral. each peripheral may also be reset under software control (refer to section 2.1 ) it is forbidden to access peripheral registers if the cpu clock mclk is slower than the related peripheral clocks pclk1 and pclk2. hdlc usb rtc block div1/2/4/8 pll2 ck hclk usbclk rtcxti rtcxt0 ckout mclk pclk1 pclk2 4 mhz x12(usb) 48 mhz osc 32 khz rclk to peripherals on apb1 to peripherals on apb2 clk2 pll1 clock multiplier & divider 1/16 clk3 ck_af 1/2 to core & memories clk div1/2/4/8 div1/2/4/8
AN2100 clock management 7/23 if the mclk clock divider is set to a prescalin g value other than 1 (i.e. if rclk frequency differs from mclk), it is not possible to access the rccu registers since they are always clocked by rclk. for non-intensive operations, pll1 may be disabled; in addition clk2 may be divided by a factor of 16, to allow low-power operation while maintaining fast interrupt response. system blocks (arm7tdmi ? , prccu, on-chip memories and bridges) are driven by mclk (bus clock) and cannot be disabled by software in order to guarantee basic functionality. a 32 khz oscillator is present to maintain a real-time-clock (rtc), with programmable wakeup alarm. it may be deactivate d if not required; when active it is not influenced by any low-power-mode switch. the hdlc peripheral can optionally receive its reference clock from an external pin, and may dynamically change its frequency independently from cpu operation. an internal pll (pll2) allows the use of a low-frequency external signal, thus reducing power consumption and generated noise. the usb interface needs a precise 48 mhz cloc k reference. this may be generated either externally through the usbclk pin, or by the internal pll2, multiplying an external reference at lower speed, if pll2 is not used by the hdlc interface. if the usb interface is not used, set bits 0, 1 an d 2 in the pcu_pll2cr register to switch off pll2 (and reduce power consumption). to reduce power consumption, bits 0, 1 and 3 in the rccu_per register must be reset by the application software in the initialization phase. these bits are enabled by hardware at reset for factory test purposes only. 2.1 peripheral clock gating it is possible to disable a peripheral clock by setting its corr esponding bit in the apb clock disable register (apbn_ckdis). refer to the apb bridge registers se ction in the str71x reference manual. the emi and the usb kernel clocks are stopped by resetting the corresponding bits in the rccu_per register. caution: after a device reset, to avoid extra power consumption, bits 0, 1 and 3 must be reset in the rccu_per register in order to disable the reserved clocks used only for factory test purposes.
clock management AN2100 8/23 2.2 pll free running mode the pll is able to provide a low-precision clock, usable for slow program execution. the frequency range is from 125 khz to 500 khz. the output frequency is selectable using the mx[1:0] bits and the free_range bits according to the following table: to enable the pll free running clock, you have to set bits dx[2:0] and set the freen bit in the rccu_pll1cr register. note: pll2 can be disabled when not in use by se tting bits dx[2:0] in the pcu_pll2cr register. table 1. pll free running mode clocks free running mode frequency mx[1:0] free_range = 0 free_range = 1 ?01?, ?11? ~125 khz ~250 khz ?00?, ?10? ~250 khz ~500 khz
AN2100 flash low power modes 9/23 3 flash low power modes 3.1 power-down mode when the microcontroller is put in stop or lpwfi mode, the flash module can be put into two different low power modes. normal mode (default), flash stand-by mode is selected (immediate read from flash is possible, but some residual power consumption is present). the flash module enters power-down mode if the pwd bit is set in the flash_cr0 register. in this mode, a recovery time of 20 s needed before reading, but power consumption is lower. 3.2 flash low-power (low-speed) by default the flash works in fast mode, using burst mode for sequential accesses, to allow zero wait state operation up to the maximum device frequency, and generating a wait cycle on non-sequential memory accesses. it is possible to put the flash into low-power mode, by setting the flash lp bit in the pcu_pwrcr register. this disables burst mode and wait states are never generated. lp mode may be used if the operating frequency (mclk) is lower than 33 mhz.
str71x low power modes AN2100 10/23 4 str71x low power modes 4.1 low power mode characteristics the str71x low power modes are su mmarized in the following table: table 2. str71x low power modes low power mode description (1) wait for interrupt (wfi) ? core clock is stopped (mclk off). ? wake-up by peripheral interrupts acknowledged by the interrupt controller (eic). ? mcu state retained (context restored after wakeup). low power wait for interrupt 1 (lpwfi1) ? core clock stopped (mclk off). ? peripherals running at slow clock: rclk = clk2/16. ? pll1 switched off automatically. ? flash can be set to power down mode automatically when lpwfi is entered. ? mcu state retained. ? wake-up by peripheral interrupts acknowledged by the eic, and clk2 is set as system clock automatically. low power wait for interrupt 2 (lpwfi2) ? core clock stopped (mclk off). ? peripherals running at slow clock speed: rclk = ck_af. ? pll1 can be switched off automatically if ck_af has been selected. ? flash can be set to power down mode automatically when lpwfi is entered. ? mvreg can be set to be switched off automatically when lpwfi is entered. ? mcu state retained. ? wake-up by peripheral interrupts acknowledged by the eic and ck_af remains the system clock (rclk) slow1 ? clk2 is set as system clock. ? pll1 can be switched off (dx[2:0]) ? flash can be set to lp mode. slow2 ? clk2 16 is set as system clock. ? pll1 can be switched off (dx[2:0] ? flash can be set to lp mode. ? mvreg can be switched off. slow3 ? ck_af is set as system clock. ? pll1 can be switched off automatically if ck_af has been selected. ? flash can be set to lp mode. ? mvreg can be switched off.
AN2100 str71x low power modes 11/23 slow4 ? pll1 configured to free running mode. ? pll1 output is set as system clock. ? flash can be set to lp mode. ? mvreg can be switched off. stop ? core and peripherals (on apb1, apb2) clocks stopped (rclk off). ? pll1 switched off automatically. ? flash can be set to power down mode automatically when stop is entered. ? mvreg can be set to be switched off automatically when stop is entered. ? wake-up by the configured external wake-up lines (xti unit). ? mcu state retained. standby ? core, memories and peripherals switched off (2) (except rtc and wakeup logic). ? main voltage regulator switched off. ? all i/os are forced to high impedance (except the standby i/os) (3) . ? wake-up by: the wakeup pin, the rtc alarm and the reset pin. ? mcu reset after wake-up. 1. refer to figure 3 for the definition of the various clocks (rclk, mclk, clk2, clk2/16, ck_af). 2. core, memories and peripherals not powered by 1.8v internal supply. 3. standby i/os are: nstdby, nrst in, wakeup, rtcxti and rtcxto. table 2. str71x low power modes (continued) low power mode description (1)
str71x low power modes AN2100 12/23 4.2 guidelines for entering/exiting low power modes 4.2.1 slow mode to enter slow mode, rclk must be configured as clk2, clk2/16, ck_af (32 khz clock) or pll1 output configured in free running mode. to reduce power consumption, you can turn off the pll1 by setting bits dx[2:0] in the rccu_pll1cr register. table 3. slow mode selection rclk csu_cksel (1) 1. csu_cksel is bit 0 in register rccu_cfr. ck2_16 (2) 2. ck2_16 is bit 3 in register rccu_cfr ckaf_sel (3) 3. ckaf_sel is bit 2 in register rccu_ccr, as mentioned in the table above this bit selection overrides the other clock selection bits. clk2 0 1 0 clk2/16 x 0 0 ck_af (4) 4. the pll can be configured to be autom atically disabled when selecting t he ck_af (32 khz) as the system clock, this can be done when setting bit ckstop_en in the rccu_cfr register. when selecting the ck_af(32 khz) as the system cloc k, you can reduce power consumption by stopping the external oscillator using a gpio pin. xx1
AN2100 str71x low power modes 13/23 4.2.2 wait for interrupt mode (wfi) to enter wfi mode, you must write a ?0? in the wfi bit of the rccu_smr register. to wakeup from wfi mode an interrupt request must be acknowledged by the eic. 4.2.3 low power wait for interrupt mode (lpwfi) to enter lpwfi mode you have to: 1. select the clock to be used by peripherals during lpwfi: clk2/16 or ck_af (wfi_cksel bit of the rccu_ccr register) 2. select lpwfi mode by setting the lpowfi bit in the rccu_ccr register. 3. write 0 in the wfi bit of the rccu_smr register to enter lpwfi mode like wfi mode, to wakeup from lpwfi mode an interrupt request must be acknowledged by the eic. to further reduce mcu power consumption in lpwfi mode you can: stop the main voltage regulator (mvr) by setting bit lpvrwfi in the pcu_pwrcr register. put the flash in power-down mode by setting bit pwd in the flash_cr0 register (refer to the str7 flash programming reference manual) when selecting the ck_af(32 khz) as system clock, you can reduce power consumption by stopping the external os cillator during lpwfi using a gpio pin. note: 1 after exit from lpwfi mode, the flash and the main voltage regulator are re-enabled automatically if they were switched off during the low power mode. 2 after wakeup from lpwfi mode, if the clock selected during lpwfi mode is ck2_16, the system clock (rclk) switches automatically to ck2. after wakeup from lpwfi mode, if the clock selected during lpwfi mode is ck_af, this clock remains the system clock (rclk). 3 refer to figure 4 and figure 5 for examples.
str71x low power modes AN2100 14/23 figure 4. example of lpwfi mode using ck_af user program clear wfi bit program flow mclk frequency interrupt pll1 multiply factor divider factor set wait for the pll to lock ck_af clock selected wait for interrupt no code is executed until interrupt serviced set to 20 to 1, and pll turned on an interrupt is requested low power mode enabled 2 mhz 40 mhz 2 mhz 40 mhz * t1 = pll lock-in time t1* (f ck = 4 mhz) wait csu_cksel 1 pll is system clock source while ck_af is the system clock f ck_af the system clock switches to clk2 in wfi state in wfi state user program activated pll is system clock source wait for the pll to lock wait wfi_cksel 1 lpowfi 1 wfi status interrupt routine ckaf_sel 0 csu_cksel 1 dx[2:0] 000 mx[1:0] 00 reset state ck_af selected begin execution of user program resumes at full speed
AN2100 str71x low power modes 15/23 figure 5. example of lpwfi mode using clk2/16 user program clear wfi bit program flow mclk frequency interrupt pll1 multiply factor divider factor set wait for the pll to lock wait for interrupt no code is executed until interrupt serviced set to 12 to 1, and pll turned on an interrupt is requested low power mode enabled 2 mhz 24 mhz 2 mhz 24 mhz * t1 = pll lock-in time t1* t1* f ck = 4 mhz wait csu_cksel 1 pll is system clock source pll switched on 125 khz in wfi state user program activated pll is system clock source wait for the pll to lock wait lpowfi 1 wfi status interrupt routine csu_cksel 1 dx[2:0] 000 mx[1:0] 01 reset state clk2/16 selected and pll automatically begin clk2 selected stopped execution of user program resumes at full speed
str71x low power modes AN2100 16/23 4.2.4 stop mode to enter stop mode you have to: 1. configure at least one external wake-up line to wake-up the mcu from stop mode. (refer to the xti section in the str71x reference manual) 2. reset the stop bit in register xti_ctrl and the stop_i bit in the rccu_cfr register. 3. to enter stop mode, write the sequence 1, 0, 1 to the stop bit in the xti_ctrl register. 4. in order to avoid executing any valid instructions after a stop bit setting sequence and before entering stop mode, it is mandatory to execute a few (at least 6) dummy instructions after the stop bit setting sequence. 5. to be sure that stop mode was really entered, immediately after the end of the stop bit setting sequence (including the dummy instructions), poll the rccu stop_i flag bit and the stop bit (xti_ctrl register). if the stop bit setting sequence has been correctly executed, these bits must be stop_i = 1 and stop = 0. if it is not the case you must restart all the sequence from the beginning. when exiting stop mode, clear the pending xti interrupt bits (xti_prh and xti_prl registers). the mcu resumes program execution after a delay of 2048 clk clock periods after the stop mode wakeup event. to further reduce power consumption during stop mode, it is possible to: put the flash in power-down mode by wr iting ?1? in bit pwd in the flash_cr0 register. disable the main voltage regulator by wr iting ?1? in bit lpvrwfi in the pcu_pwrcr register. stop the external oscillator using a gpio pin note: after exit from stop mode, the flash and the main voltage regulator are re-enabled automatically if they were switched off during the stop mode caution: the external oscillator must be re-enabled in order to exit from stop mode (see example application in section 5 ).
AN2100 str71x low power modes 17/23 4.2.5 standby mode the standby sequence is initiated either: by setting the pwrdwn bit in the pcu_pwrcr register (software standby entry) or by externally forcing the nstdby pin to ?0? (hardware standby entry). caution: you have to manage the nstdby, wakeup and r eset pin states in orde r to enter or exit standby mode (refer to the str71x reference manual, standby section). note: to further reduce power consumption in standby mode it is possible to: - bypass the low power voltage regulator. in this case v 18bkp pin must be connected to an external 1.8v through a diode. - stop the lvd by setting bit lvd byp in the pcu_pwrcr register - stop the 32 khz oscillator by setting bit osc byp in the pcu_pwrcr to reduce the board power consumption, the nstdby pin which is forced to low level during standby mode, can be used to stop other on-board components (oscillators, power supplies...). caution: because it powers the i/os, v33 must not be switched off in standby mode to allow the nstdby, nrstin and wakeup pi ns to remain functional.
example application AN2100 18/23 5 example application 5.1 example hardware figure 6 shows an example schematic for testing the str71x power management features. figure 6. example application schematic 1. the nstdby pin is connected to the tristate pin of the oscillator in order to dis able the oscillator when the mcu is in standby mode, in fact during this mode the nstdby pin is forced to low level. 2. p0.10 can be used to stop the oscillator before enteri ng stop or lpwfi modes, in this case the system clock must be previously switched to the 32 khz rtc clock or the pll free running mode clock. 3. p1.14 is configured as an external interrupt pin, it is used to wake up the mcu from stop or lpwfi mode. this pin is linked through a diode to the oscillator because it is al so used to re-enable the oscillator during wake-up from stop mode. 4. p0.0 is used to indicate that the core is ru nning (gpio toggling) during run/slow mode and when system wake-up from low power mode. 5. the wakeup pin can be used to wake up the mcu from standby mode, wfi mode. str71x v 33 v 18 v 18bkp v ssbkp 1f 3.3v ck 16 mhz osc 3.3v out tristate pin nstdby p1.14 p0.0 led1 3.3v v ss rtcxti rtcxto 22pf 22pf 32khz (1) nrstin 3.3v 10f p0.10 3.3v 2.1v wakeup 3.3v 33nf a 1n4001 100k 10k 10k 10k 10k 10k 100nf 100nf (2) (3) (4) (5) (p0.15)
AN2100 example application 19/23 5.2 firmware example there are 5 folders in the zip file provided with this application note giving an example of low power mode configuration (slow, wfi, lpwfi, stop and standby): directory content: 71x_ conf.h : library configuration file 71x_ it.c : interrupt handlers 71x_ it.h : interrupt handlers header file main.c : main program the project subfolder contains projects that compile the example files with the various standard toolchains: ewarm : contains the project for the ewarm toolchain rvmdk : contains the project for the rvmdk toolchain rvdk: contains the project for the rvdk toolchain ride: contains the project for the ride toolchain the following routines are used to configure and enter the low power modes: table 4. low power mode routines routine description pcu_lpmodesconfig this routine is used to configure the str71x low power modes: ? pll1 state when ck_af is selected ? mvreg and flash states in lpwfi and stop modes ? lp mode during wfi ? lpwfi clock rccu_rclksourceconfig this routine is used for clock selection in slow mode. pcu_wfi causes the mcu to enter wfi / lpwfi mode. pcu_stop causes the mcu to enter stop mode. pcu_standby causes the mcu to enter standby mode.
example application AN2100 20/23 5.2.1 low power mode examples the following table summarizes the low power mode examples provided: table 5. low power mode configuration low power mode configuration/options during the selected low power mode slow mode flash in lp mode, mvr disabled, pll2 disabled. 1. three examples of slow mode configuration can be selected: a. slowmode_clk2_16 : system clock configured to clk2_16 (by uncommenting the line #define slow mode_clk2_16 in the 71x_conf.h file). b. slowmode_ck_af (by uncommenting the line #define slowmode_ck_af in th e 71x_conf.h file). c. slowmode_pll1freerunning (by uncommenting the line #define slowmode_pll1freerunning in the 71x_conf.h file2). 2. disable pll1. 3. set the flash to lp mode. 4. disable mvr. 5. toggle gpio pin p0.0. wfi mode 1. set rclk= mclk=pclk1=pclk2= clk2_16=500 khz, pll1 and pll2 disabled. 2. configure xti to generate interrupts on p0.15. 3. configure the eic to acknowledge xti interrupt. 4. toggle the gpio pin p0.0 5. enter wfi mode. 6. go back to step 4. 7. clear the xti pending bit in the xti isr. lpwfi mode 1. set rclk= mclk=pclk1=pclk2= clk2_16=500 khz, pll1 and pll2 disabled. 2. configure xti to generate interrupts on p0.15. 3. configure the eic to acknowledge xti interrupt. 4. put the flash in power down mode and disable mvreg in lp_wfi mode. 5. toggle the gpio pin p0.0. 6. enter lp_wfi mode with rclk = clk2_16 or with rclk=ck_af by uncommenting the ?#define __lpwfi_ck2_16? or ?#define __lpwfi_ck_af? lines in the 71x_conf.h file respectively. 7. go back to step 5. 8. clear the xti pending bit in the xti isr note: it is possible to use the rtc to wake-up the system from lpwfi mode if rclk=ck2_16 in lpwfi mode. this is selected by uncommenting the ?#define wakeup_rtc? line in the 71x_conf.h file. the rtc clock must be at least 4 times slower than pclk2 clock even in low power mode. refer to section 5.3.4 in the str71x reference manual.
AN2100 example application 21/23 note: for power consumption measurement results, please refer to the str71x datasheet. stop mode flash in pwd mode, mvr disabled and pll2 disabled. 1. configure xti to generate interrupts on p0.15. 2. configure the eic to acknowledge xti interrupt. 3. configure mvreg/flash to be disabled/pwd during stop mode. 4. set the rclk to the ck_af clock source. 5. toggle the gpio pin p0.0. 6. stop the external osc illator using a gpio (p0.10). 7. enter stop mode. 8. enable the external oscillator. 9. go back to step (4). 10. clear the xti pending bit in the xti_isr. standby mode 1. set the pll1 to 24 mhz, rclk = pll1 output. 2. configure the rtc. 3. toggle a gpio pin. 4. configure rtc alarm after rtc_alarm_delay. 5. enter standby mode. table 5. low power mode configuration (continued) low power mode configuration/options during the selected low power mode
revision history AN2100 22/23 6 revision history table 6. document revision history date revision changes 01-dec-2005 1 initial release 03-dec-2007 2 reference to additional clock added, section 2 on page 6 new section added, section 3: flash low power modes on page 9 mvr description modified, section 1.2.1 on page 4 table 2: str71x low power modes on page 10 updated. section 4.2.3: low power wait for interrupt mode (lpwfi) on page 13 text updated in section 5.2 on page 19 : ta bl e 5 updated.
AN2100 23/23 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by an authorized st representative, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2007 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of AN2100

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X